package com.bydq.patrolsystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "ps_inspectiontask_detail",resultMap = "psInspectiontaskDetailMap")
public class PsInspectiontaskDetail implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 主表任务ID
     */
    @TableField("taskId")
    private Long taskId;

    /**
     * 杆塔ID
     */
    @TableField("poleId")
    private Long poleId;

    @TableField("poleCode")
    private String poleCode;

    @TableField("lineCode")
    private String lineCode;

    @TableField("lineName")
    private String lineName;

    /**
     * 有无缺陷/故障，1、有，0、无
     */
    @TableField("isBug")
    private Integer isBug;

    /**
     * 完好率
     */
    @TableField("intactRate")
    private Double intactRate;

    /**
     * 缺陷级别ID
     */
    @TableField("bugLevel")
    private Long bugLevel;

    @TableField("bugLevelName")
    private String bugLevelName;

    /**
     * 缺陷类型ID
     */
    @TableField("bugType")
    private Long bugType;

    @TableField("bugTypeName")
    private String bugTypeName;

    @TableField("bugDesc")
    private String bugDesc;

    @TableField("discovererCode")
    private String discovererCode;

    @TableField("discovererName")
    private String discovererName;

    /**
     * 发现时间
     */
    @TableField("discoverTime")
    private Date discoverTime;

    /**
     * 是否消缺，1、是，0、否
     */
    @TableField("isSolve")
    private Integer isSolve;

    /**
     * 巡检时间
     */
    @TableField("inspectTime")
    private Date inspectTime;

    /**
     * 创建时间
     */
    @TableField(value = "creationTime",fill = FieldFill.INSERT)
    private Date creationTime;

    @TableField("createdBy")
    private String createdBy;

    /**
     * 最后修改时间
     */
    @TableField(value = "lastUpdateTime",fill = FieldFill.INSERT_UPDATE)
    private Date lastUpdateTime;

    /**
     * 是否确定缺陷级别（1、是，0、否）默认为0
     */
    @TableField("isBugLevel")
    private Integer isBugLevel;

    /**
     * 是否f分配消缺任务（1、是，0、否）默认为0
     */
    @TableField("isBugAllocate")
    private Integer isBugAllocate;

    /**
     * 配置多对一
     */
    @TableField(exist = false)
    private PsInspectiontaskMain psInspectiontaskMain;



}
